const state = {
  lang: localStorage.getItem("contract-tenant-h5-lang") || "zh-CN"
};

const mutations = {
  SET_LANG: (state, lang) => {
    state.lang = lang;
  }
};

const actions = {
  setLang({ commit }, lang) {
    commit("SET_LANG", lang);
  }
};

export default {
  namespaced: true,
  state,
  mutations,
  actions
};
